<div class="register container">
    <form class="ui form" *ngIf="!registered" (submit)="onSubmit()" >
        <div class="field">
            <label>用户名</label>
            <input type="text" name="userName" [(ngModel)]="newUser.userName" placeholder="用户名"/>
        </div>
        <div class="field">
            <label>密码</label>
            <input type="text" name="password" [(ngModel)]="newUser.password"  placeholder="密码"/>
        </div>

        <button class="ui button" type="submit">Submit</button>
    </form>
    <div *ngIf="registered">
        Register Success
    </div>
</div>